package refparam;

class Dog{
	public String name;
	public String color;
}

class Boy{
	public String name;
	
	public void walkDog(Dog dog) {
		System.out.println(name + "在遛" + dog.color + "的" + dog.name);
	}
}

public class BoyAndDog {
	public static void main(String[] args) {
		Dog d = new Dog();
		d.name = "旺财";
		d.color = "棕黄色";
		
		Boy b = new Boy();
		b.name = "剑宇";
		b.walkDog(d);
	}
}
